package com.example.base.entity;

import org.springframework.stereotype.Component;

@Component
public class Room {
    private Integer id;
    private Integer unitId;
    private String name;
    private String gender;
    private Integer total;
    private Integer remain;
    private Integer broken;

    @Override
    public String toString() {
        return "Room{" +
                "id=" + id +
                ", unitId=" + unitId +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                ", total=" + total +
                ", remain=" + remain +
                ", broken=" + broken +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUnitId() {
        return unitId;
    }

    public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getRemain() {
        return remain;
    }

    public void setRemain(Integer remain) {
        this.remain = remain;
    }

    public Integer getBroken() {
        return broken;
    }

    public void setBroken(Integer broken) {
        this.broken = broken;
    }
}
